#ifndef SETTINGSWIDGET_H
#define SETTINGSWIDGET_H

#include <QWidget>
#include <DataProvider.h>

namespace Ui {
class SettingsWidget;
}

class SettingsWidget : public QWidget
{
	Q_OBJECT

	Ui::SettingsWidget *ui;

	DataProvider* _provider;
	
public:
	explicit SettingsWidget(QWidget *parent = 0);
	~SettingsWidget();

	void setDataProvider(DataProvider* provider);

signals:
	void hidePanel();


public slots:
	void onBtnDBLocation();
	void onBtnAcceptPass();
	void onBtnChangePass();
	void onShowDlg(bool state);
	void onCipherTypeChanged(int index);

	void updatePass(CipherType::Enum type, QString str);
};

#endif // SETTINGSWIDGET_H
